<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>IBustService</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.77.1">
<link rel="home" href="index.html" title="IBust Reference Manual">
<link rel="up" href="ch05.html" title="Communication">
<link rel="prev" href="IBustSerializable.html" title="IBustSerializable">
<link rel="next" href="ch06.html" title="Internal">
<meta name="generator" content="GTK-Doc V1.18 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="2">
<tr valign="middle">
<td><a accesskey="p" href="IBustSerializable.html"><img src="left.png" width="24" height="24" border="0" alt="Prev"></a></td>
<td><a accesskey="u" href="ch05.html"><img src="up.png" width="24" height="24" border="0" alt="Up"></a></td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="24" height="24" border="0" alt="Home"></a></td>
<th width="100%" align="center">IBust Reference Manual</th>
<td><a accesskey="n" href="ch06.html"><img src="right.png" width="24" height="24" border="0" alt="Next"></a></td>
</tr>
<tr><td colspan="5" class="shortcuts">
<a href="#IBustService.synopsis" class="shortcut">Top</a>
                   | 
                  <a href="#IBustService.description" class="shortcut">Description</a>
                   | 
                  <a href="#IBustService.object-hierarchy" class="shortcut">Object Hierarchy</a>
</td></tr>
</table>
<div class="refentry">
<a name="IBustService"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="IBustService.top_of_page"></a>IBustService</span></h2>
<p>IBustService — IBust service back-end.</p>
</td>
<td valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="IBustService.stability-level"></a><h2>Stability Level</h2>
Stable, unless otherwise indicated
</div>
<div class="refsynopsisdiv">
<a name="IBustService.synopsis"></a><h2>Synopsis</h2>
<pre class="synopsis">struct              <a class="link" href="IBustService.html#IBustService-struct" title="struct IBustService">IBustService</a>;
struct              <a class="link" href="IBustService.html#IBustServiceClass" title="struct IBustServiceClass">IBustServiceClass</a>;
<span class="returnvalue">gboolean</span>            <a class="link" href="IBustService.html#ibust-service-class-add-interfaces" title="ibust_service_class_add_interfaces ()">ibust_service_class_add_interfaces</a>   (<em class="parameter"><code><a class="link" href="IBustService.html#IBustServiceClass" title="struct IBustServiceClass"><span class="type">IBustServiceClass</span></a> *klass</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *xml_data</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="IBustService.html#ibust-service-emit-signal" title="ibust_service_emit_signal ()">ibust_service_emit_signal</a>            (<em class="parameter"><code><a class="link" href="IBustService.html" title="IBustService"><span class="type">IBustService</span></a> *service</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *dest_bus_name</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *interface_name</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *signal_name</code></em>,
                                                         <em class="parameter"><code><span class="type">GVariant</span> *parameters</code></em>,
                                                         <em class="parameter"><code><span class="type">GError</span> **error</code></em>);
<span class="returnvalue">GDBusConnection</span> *   <a class="link" href="IBustService.html#ibust-service-get-connection" title="ibust_service_get_connection ()">ibust_service_get_connection</a>         (<em class="parameter"><code><a class="link" href="IBustService.html" title="IBustService"><span class="type">IBustService</span></a> *service</code></em>);
const <span class="returnvalue">gchar</span> *       <a class="link" href="IBustService.html#ibust-service-get-object-path" title="ibust_service_get_object_path ()">ibust_service_get_object_path</a>        (<em class="parameter"><code><a class="link" href="IBustService.html" title="IBustService"><span class="type">IBustService</span></a> *service</code></em>);
<a class="link" href="IBustService.html" title="IBustService"><span class="returnvalue">IBustService</span></a> *       <a class="link" href="IBustService.html#ibust-service-new" title="ibust_service_new ()">ibust_service_new</a>                    (<em class="parameter"><code><span class="type">GDBusConnection</span> *connection</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *path</code></em>);
<span class="returnvalue">gboolean</span>            <a class="link" href="IBustService.html#ibust-service-register" title="ibust_service_register ()">ibust_service_register</a>               (<em class="parameter"><code><a class="link" href="IBustService.html" title="IBustService"><span class="type">IBustService</span></a> *service</code></em>,
                                                         <em class="parameter"><code><span class="type">GDBusConnection</span> *connection</code></em>,
                                                         <em class="parameter"><code><span class="type">GError</span> **error</code></em>);
<span class="returnvalue">void</span>                <a class="link" href="IBustService.html#ibust-service-unregister" title="ibust_service_unregister ()">ibust_service_unregister</a>             (<em class="parameter"><code><a class="link" href="IBustService.html" title="IBustService"><span class="type">IBustService</span></a> *service</code></em>,
                                                         <em class="parameter"><code><span class="type">GDBusConnection</span> *connection</code></em>);
</pre>
</div>
<div class="refsect1">
<a name="IBustService.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="synopsis">
  GObject
   +----GInitiallyUnowned
         +----<a class="link" href="IBustObject.html" title="IBustObject">IBustObject</a>
               +----IBustService
                     +----<a class="link" href="IBustFactory.html" title="IBustFactory">IBustFactory</a>
                     +----<a class="link" href="IBustConfigService.html" title="IBustConfigService">IBustConfigService</a>
                     +----<a class="link" href="IBustEngine.html" title="IBustEngine">IBustEngine</a>
                     +----<a class="link" href="IBustPanelService.html" title="IBustPanelService">IBustPanelService</a>
</pre>
</div>
<div class="refsect1">
<a name="IBustService.description"></a><h2>Description</h2>
<p>
An IBustService is a base class for services.
</p>
</div>
<div class="refsect1">
<a name="IBustService.details"></a><h2>Details</h2>
<div class="refsect2">
<a name="IBustService-struct"></a><h3>struct IBustService</h3>
<pre class="programlisting">struct IBustService;</pre>
<p>
An opaque data type representing an IBustService.
</p>
</div>
<hr>
<div class="refsect2">
<a name="IBustServiceClass"></a><h3>struct IBustServiceClass</h3>
<pre class="programlisting">struct IBustServiceClass {
    /* virtual functions */
    void        (* service_method_call)
                                    (IBustService        *service,
                                     GDBusConnection    *connection,
                                     const gchar        *sender,
                                     const gchar        *object_path,
                                     const gchar        *interface_name,
                                     const gchar        *method_name,
                                     GVariant           *parameters,
                                     GDBusMethodInvocation
                                                        *invocation);
    GVariant *  (* service_get_property)
                                    (IBustService        *service,
                                     GDBusConnection    *connection,
                                     const gchar        *sender,
                                     const gchar        *object_path,
                                     const gchar        *interface_name,
                                     const gchar        *property_name,
                                     GError            **error);
    gboolean    (* service_set_property)
                                    (IBustService        *service,
                                     GDBusConnection    *connection,
                                     const gchar        *sender,
                                     const gchar        *object_path,
                                     const gchar        *interface_name,
                                     const gchar        *property_name,
                                     GVariant           *value,
                                     GError            **error);
};
</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="ibust-service-class-add-interfaces"></a><h3>ibust_service_class_add_interfaces ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            ibust_service_class_add_interfaces   (<em class="parameter"><code><a class="link" href="IBustService.html#IBustServiceClass" title="struct IBustServiceClass"><span class="type">IBustServiceClass</span></a> *klass</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *xml_data</code></em>);</pre>
<p>
Set the interface introspection information with the service class.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>klass</code></em> :</span></p></td>
<td>An IBustServiceClass.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>xml_data</code></em> :</span></p></td>
<td>The introspection xml data.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ibust-service-emit-signal"></a><h3>ibust_service_emit_signal ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            ibust_service_emit_signal            (<em class="parameter"><code><a class="link" href="IBustService.html" title="IBustService"><span class="type">IBustService</span></a> *service</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *dest_bus_name</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *interface_name</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *signal_name</code></em>,
                                                         <em class="parameter"><code><span class="type">GVariant</span> *parameters</code></em>,
                                                         <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>
</p>
</div>
<hr>
<div class="refsect2">
<a name="ibust-service-get-connection"></a><h3>ibust_service_get_connection ()</h3>
<pre class="programlisting"><span class="returnvalue">GDBusConnection</span> *   ibust_service_get_connection         (<em class="parameter"><code><a class="link" href="IBustService.html" title="IBustService"><span class="type">IBustService</span></a> *service</code></em>);</pre>
<p>
Returns a connections.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>service</code></em> :</span></p></td>
<td>An IBustService.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A <span class="type">GDBusConnection</span> of an <a class="link" href="IBustService.html" title="IBustService"><span class="type">IBustService</span></a> instance. <span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ibust-service-get-object-path"></a><h3>ibust_service_get_object_path ()</h3>
<pre class="programlisting">const <span class="returnvalue">gchar</span> *       ibust_service_get_object_path        (<em class="parameter"><code><a class="link" href="IBustService.html" title="IBustService"><span class="type">IBustService</span></a> *service</code></em>);</pre>
<p>
Returns the object path of an IBustService.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>service</code></em> :</span></p></td>
<td>An IBustService.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>The object path of <em class="parameter"><code>service</code></em>
</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ibust-service-new"></a><h3>ibust_service_new ()</h3>
<pre class="programlisting"><a class="link" href="IBustService.html" title="IBustService"><span class="returnvalue">IBustService</span></a> *       ibust_service_new                    (<em class="parameter"><code><span class="type">GDBusConnection</span> *connection</code></em>,
                                                         <em class="parameter"><code>const <span class="type">gchar</span> *path</code></em>);</pre>
<p>
New an IBustService.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>path</code></em> :</span></p></td>
<td>Object path.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>A newly allocated IBustService</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ibust-service-register"></a><h3>ibust_service_register ()</h3>
<pre class="programlisting"><span class="returnvalue">gboolean</span>            ibust_service_register               (<em class="parameter"><code><a class="link" href="IBustService.html" title="IBustService"><span class="type">IBustService</span></a> *service</code></em>,
                                                         <em class="parameter"><code><span class="type">GDBusConnection</span> *connection</code></em>,
                                                         <em class="parameter"><code><span class="type">GError</span> **error</code></em>);</pre>
<p>
Registers service to a connection.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>service</code></em> :</span></p></td>
<td>An IBustService.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>connection</code></em> :</span></p></td>
<td>A GDBusConnection the service will be registered to.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>error</code></em> :</span></p></td>
<td>Return location for error or NULL.</td>
</tr>
<tr>
<td><p><span class="term"><span class="emphasis"><em>Returns</em></span> :</span></p></td>
<td>TRUE if the service was registered, FALSE otherwise.</td>
</tr>
</tbody>
</table></div>
</div>
<hr>
<div class="refsect2">
<a name="ibust-service-unregister"></a><h3>ibust_service_unregister ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>                ibust_service_unregister             (<em class="parameter"><code><a class="link" href="IBustService.html" title="IBustService"><span class="type">IBustService</span></a> *service</code></em>,
                                                         <em class="parameter"><code><span class="type">GDBusConnection</span> *connection</code></em>);</pre>
<p>
Unregisters service from a connection.
</p>
<div class="variablelist"><table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top">
<col>
</colgroup>
<tbody>
<tr>
<td><p><span class="term"><em class="parameter"><code>service</code></em> :</span></p></td>
<td>An IBustService.</td>
</tr>
<tr>
<td><p><span class="term"><em class="parameter"><code>connection</code></em> :</span></p></td>
<td>A GDBusConnection the service was registered with.</td>
</tr>
</tbody>
</table></div>
</div>
</div>
</div>
<div class="footer">
<hr>
          Generated by GTK-Doc V1.18</div>
</body>
</html>